package pers.liyan.shi.springaop.domain;

import lombok.Data;

@Data
public class Result<T> {

    private Integer code;

    private T result;

    private String message;

    public static <T> Result<T> ok(T result){
        Result<T> r = new Result<>();
        r.setCode(0);
        r.setResult(result);
        return r;
    }


}
